package com.oro.domain;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * Entity implementation class for Entity: PricePolicy Price policy is applied
 * to a Study Material
 * 
 */
@Entity
public class PricePolicy implements Serializable {

	private static final long serialVersionUID = 1L;

	private int everyNumberOfWeeks; // If 0, it's una tantum or forLevel
	private boolean forLevel; // If true, you pay whenever you change level. If
								// false, it's una tantum or everyNumberOfWeeks
	@Id
	@GeneratedValue
	private Long id;

	private float price; // If 0, it's free

	public PricePolicy() {
		super();
	}

	public int getEveryNumberOfWeeks() {
		return everyNumberOfWeeks;
	}

	public Long getId() {
		return id;
	}

	public float getPrice() {
		return price;
	}

	public boolean isForLevel() {
		return forLevel;
	}

	public void setEveryNumberOfWeeks(int everyNumberOfWeeks) {
		this.everyNumberOfWeeks = everyNumberOfWeeks;
	}

	public void setForLevel(boolean forLevel) {
		this.forLevel = forLevel;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setPrice(float price) {
		this.price = price;
	}

}
